<?php


namespace App\Controller;

use Hyperf\View\RenderInterface;
use Hyperf\DbConnection\Db;

class UserController extends  AbstractController
{

    public function index(RenderInterface $render)
    {
        $users = Db::select('SELECT * FROM user;');
        return $render->render('index',['users' => $users]);
    }
}
